
import java.io.File;

public class FileDemo01 {
    public static void main(String[] args) {
        File file1 = new File("D:\\JavaLearn\\idea\\Code\\JavaSE_Code\\MyFile\\src\\file.txt");
        System.out.println(file1);
        File file2 = new File("D:\\JavaLearn\\idea\\Code\\JavaSE_Code\\MyFile\\src","file.txt");
        System.out.println(file2);
        File file3 = new File("D:\\JavaLearn\\idea\\Code\\JavaSE_Code\\MyFile\\src");
        File file4 = new File(file3,"file.txt");
        System.out.println(file4);

    }
}
